package com.ruoyi.squadweb.mapper;

import com.ruoyi.squadweb.domain.SquadjsBroadcastMessage;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * 广播消息Mapper接口
 *
 * @author LJY
 * @date 2023-10-27
 */
@Mapper
public interface SquadjsBroadcastMessageMapper
{
    /**
     * 查询广播消息
     *
     * @param id 广播消息主键
     * @return 广播消息
     */
    public SquadjsBroadcastMessage selectSquadjsBroadcastMessageById(Long id);

    /**
     * 查询广播消息列表
     *
     * @param squadjsBroadcastMessage 广播消息
     * @return 广播消息集合
     */
    public List<SquadjsBroadcastMessage> selectSquadjsBroadcastMessageList(SquadjsBroadcastMessage squadjsBroadcastMessage);

    /**
     * 新增广播消息
     *
     * @param squadjsBroadcastMessage 广播消息
     * @return 结果
     */
    public int insertSquadjsBroadcastMessage(SquadjsBroadcastMessage squadjsBroadcastMessage);

    /**
     * 修改广播消息
     *
     * @param squadjsBroadcastMessage 广播消息
     * @return 结果
     */
    public int updateSquadjsBroadcastMessage(SquadjsBroadcastMessage squadjsBroadcastMessage);

    /**
     * 删除广播消息
     *
     * @param id 广播消息主键
     * @return 结果
     */
    public int deleteSquadjsBroadcastMessageById(Long id);

    /**
     * 批量删除广播消息
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteSquadjsBroadcastMessageByIds(Long[] ids);
}
